package cn.tedu.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :Colin
 * @version 创建时间: 2021/7/13 16:50
 */
@RestController//改变为json字符串
@RequestMapping("car")
public class CarController {
    @RequestMapping("get")
    public Car get(){
        Car car =new Car();
        car.setId(718);
        car.setName("保时捷");
        car.setType("cayman t");
        car.setColor("红色");
        car.setPrice(641000.0);
        return car;
    }
}
